package org.dandelion.papercheck.dao;

import org.dandelion.papercheck.entity.User;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao extends JpaRepository<User, Long> {
    List<User> findByUsername(String username);

    List<User> findByIsAdmin(Boolean isAdmin, Pageable pageable);

}
